<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
<title>屏蔽鼠标右键</title>
<script type="text/javascript">
  function click() {
     event.returnValue=false;
	 alert("当前设置不允许使用鼠标右键！");
  }
  document.oncontextmenu=click;
</script>
</head>

<body>
<div style="width: 755px;margin: 0 auto">
  <img src="emilp.jpg">
</div>
</body>

</html>
